package netty01.client;

import java.util.Scanner;

/**
 * 启动类
 */
public class Start {

    public static void main(String[] args) {

        MultClient client = new MultClient();
        client.init(5);

        //BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        Scanner scanner = new Scanner(System.in);
        while (true) {
            try {
                System.out.println("请输入:");
                //String msg = bufferedReader.readLine();
                String msg = scanner.next();
                client.nextChannel().writeAndFlush(msg);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

}
